﻿<%@  Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage" %>
<script runat="server">

    private string _returnUrl;

    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        jQueryScriptManager.Current.RegisterSource(Url.Asset("jsc.portal.core"));
        jQueryScriptManager.Current.RegisterSource(Url.Asset("jquery.ui"));
        _returnUrl = string.IsNullOrEmpty(Request.QueryString["ReturnUrl"])
            ? Url.Encode(Request.Url.PathAndQuery)
            : Request.QueryString["ReturnUrl"];
    }

</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" lang="en">
<!--
//******************************************************************
//** Software development, CMS                                    **
//** JSC Portal                                                   **
//** JSC Projects                                                 **
//** www.jsc-projects.nl                                          **
//******************************************************************
-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta id="metaKeywords" runat="server" name="keywords" content="" />
    <meta id="metaDescription" runat="server" name="description" content="" />
    <link rel="Stylesheet" type="text/css" href="<%= Url.Asset("jsc.portal.core.css").Replace("&", "&amp;") %>" />
    <!--[if lte IE 7]>
    <style type="text/css">
        html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/
    </style>
    <![endif]-->
    <script src="<%= Url.Asset("jquery.core").Replace("&", "&amp;") %>" type="text/javascript"></script>
</head>
<body>
    <div id="login-container" style="display: none;">
    </div>
    <div id="modal-container" style="display: none;">
    </div>
    <jsc:jQueryScriptManager id="scripts" runat="server"></jsc:jQueryScriptManager>

    <script type="text/javascript">
        $(document).ready(function () {
            ShowModal('#login-container',
                    'simplemodal-container-login',
                    '<%= Url.Action("Login", ControllerNames.PORTALUSERS_CONTROLLER, new { ReturnUrl = _returnUrl })%>');
        });
    </script>
</body>
</html>
